package com.example.template.subscriber;

import com.example.template.service.comand.AddStudentCompletedEvent;
import com.google.common.eventbus.Subscribe;
import lombok.experimental.SuperBuilder;
import org.springframework.stereotype.Component;

@Component
public class AddStudentCompletedEventSubscriber {

    @Subscribe
    public void handle(AddStudentCompletedEvent event) {
        System.out.println("有人说：【添加学生】已经干完了");
        System.out.println("添加的学生的ID: " + event.getId());
        // ...
        System.out.println("接下来，我要将【学生】的状态改为已支付。");
    }

}
